body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.chat-app {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 300px;
    background-color: #f0f0f0;
    padding: 10px;
}

.user-list {
    list-style-type: none;
    padding: 0;
}

.user-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.user-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-info span {
    font-weight: bold;
}

.search-bar input {
    width: 100%;
    padding: 5px;
    margin-top: 10px;
}

.settings button {
    background-color: transparent;
    border: none;
    color: #333;
    font-size: 16px;
    cursor: pointer;
}

.main-chat {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

.chat-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: #fff;
}

.message-input {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #ddd;
}

.message-input input {
    flex-grow: 1;
    padding: 5px;
    margin-right: 10px;
}

.message-input button {
    padding: 5px 10px;
}